# -*- coding: utf-8 -*-
from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello_world():
    return '这里是URL跳转'
@app.route('/user/<name>')
def index(name):
    return name
@app.route('news/<int:id>')
def list_news(id):
    return id
if __name__ == '__main__':
    app.run(debug=True, host='0.0.0.0', port=8888)